//
//  LoveHealthAPI.h
//  LoveHealth
//
//  Created by lanou3g on 14-9-18.
//  Copyright (c) 2014年 lanou. All rights reserved.
//

#ifndef LoveHealth_LoveHealthAPI_h
#define LoveHealth_LoveHealthAPI_h

#define APIImageURL(Img) [NSString stringWithFormat:@"http://www.yi18.net/%@",Img];
#pragma mark----------------------健康资讯分类---------------
#define APIHealthNewsClass @"http://api.yi18.net/news/newsclass"

#pragma mark----------------------健康资讯列表---------------
#define APIHealthNewsList @"http://api.yi18.net/news/list"

#pragma mark----------------------健康资讯详情--------------
#define APIHealthNewsDetail @"http://api.yi18.net/news/show"

#pragma mark----------------------健康资讯搜索--------------
#define APIHealthNewsSearch @"http://api.yi18.net/news/search"


#pragma mark----------------------健康食谱分类---------------
#define APIHealthFoodClass @"http://api.yi18.net/cook/cookclass"

#pragma mark----------------------健康食谱列表---------------
#define APIHealthFoodList @"http://api.yi18.net/cook/list"


#pragma mark----------------------健康食谱详情---------------
#define APIHealthFoodDetail @"http://api.yi18.net/cook/show"

#pragma mark----------------------健康食谱搜索---------------
#define APIHealthFoodSearch @"http://api.yi18.net/cook/search"


#pragma mark-----------------------健康知识分类-----------
#define APIHealthKnowledgeClass @"http://api.yi18.net/lore/loreclass"



#pragma mark-----------------------健康知识列表-----------
#define APIHealthKnowledgeList @"http://api.yi18.net/lore/list"


#pragma mark-----------------------健康知识详情-----------
#define APIHealthKnowledgeDetail @"http://api.yi18.net/lore/show"



#pragma mark-----------------------健康知识搜索-----------
#define APIHealthKnowledgeSearch @"http://api.yi18.net/lore/search"


#pragma mark-----------------------QQ一键登陆-----------
//#define APIQQLogin @"http://www.yi18.net/home/open?op=qq&state=json"


#pragma mark-----------------------新浪微博一键登陆-----------
//#define APIMicroblogLogin @"http://www.yi18.net/home/open?op=sina&state=json"


#pragma mark-----------------------用户收藏（是否收藏）-----------
#define APIUserIsFavorite @"http://api.yi18.net/favorite/isfavorite"

#pragma mark-----------------------用户收藏  -----------
#define APIUserFavorite @"http://api.yi18.net/favorite/add"

#pragma mark-----------------------用户取消收藏  -----------
#define APIUserCancelFavorite @"http://api.yi18.net/favorite/cancel"


#pragma mark-----------------------用户收藏夹 -----------
#define APIUserFavoriteFile @"http://api.yi18.net/favorite/list"


#pragma mark-----------------------用户评论 -----------
#define APIUserDiscuss @"http://api.yi18.net/memo/add"

#pragma mark-----------------------删除评论 -----------
#define APIUserDeleteDiscuss @"http://api.yi18.net/memo/cancel"


#pragma mark-----------------------评论列表 -----------
#define APIUserDiscussList @"http://api.yi18.net/favorite/list"




#define APIQQLogin @"http://www.yi18.net/home/open?op=qq&state=json"

#define APISinaLogin @"http://www.yi18.net/home/open?op=sina&state=json"

#define APIAccessToken @"http://api.yi18.net/oauth2/accesstoken?client_id=wwwyi18net&client_secret=yi18net&grant_type=authorization_code&redirect_uri=http://m.yi18.net/oauth2/token&&code=authorization_code&refresh_token="
#define APIUserInfo @"http://api.yi18.net/user/info?access_token="

#endif
